package com.erp.erp_ui.Stock_Info;

import com.erp.erp_entitys.Stock_Info.StockProductInfo;
import com.erp.erp_servers.Stock_Info.StockProductInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 采购商品明细表(StockProductInfo)表控制层
 *
 * @author makejava
 * @since 2020-10-13 20:00:00
 */
@RestController
@RequestMapping("stockProductInfo")
public class StockProductInfoController {
    /**
     * 服务对象
     */
    @Resource
    private StockProductInfoService stockProductInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public StockProductInfo selectOne(Integer id) {
        return this.stockProductInfoService.queryById(id);
    }

}